package com.lion.ball.app.models.params.create;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品 数据创建参数
 * Explain:
 * 
 */
public class TradeGoodsCreateParam {
    // ID
    private long id;
    // 商品编号
    private long code;
    // 商品标题
    private String title;
    // 商品分类ID
    private long cateCode;
    // 交易模式 0 定价 1 竞拍
    private int mode;
    // 价格或者竞拍底价
    private double price;
    // 用户账号
    private long accountCode;
    // 发布日期
    private long time;
    // 商品状态 0 新增 1 发布 2 交易 3 下架
    private int goodsStatus;

    // 无参构造方法
    public TradeGoodsCreateParam() {
    }

    // 全参数构造方法
    public TradeGoodsCreateParam(long id, long code, String title, long cateCode, int mode, double price, long accountCode, long time, int goodsStatus) {
        this.id = id;
        this.code = code;
        this.title = title;
        this.cateCode = cateCode;
        this.mode = mode;
        this.price = price;
        this.accountCode = accountCode;
        this.time = time;
        this.goodsStatus = goodsStatus;
    }

    // 全参数create生成器
    public static TradeGoodsCreateParam create(long id, long code, String title, long cateCode, int mode, double price, long accountCode, long time, int goodsStatus) {
        return new TradeGoodsCreateParam(id, code, title, cateCode, mode, price, accountCode, time, goodsStatus);
    }

    // 全参数of生成器
    public static TradeGoodsCreateParam of(long id, long code, String title, long cateCode, int mode, double price, long accountCode, long time, int goodsStatus) {
        return new TradeGoodsCreateParam(id, code, title, cateCode, mode, price, accountCode, time, goodsStatus);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public TradeGoodsCreateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public TradeGoodsCreateParam setCode(long code) {
        this.code = code;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public TradeGoodsCreateParam setTitle(String title) {
        this.title = title;
        return this;
    }

    public long getCateCode() {
        return cateCode;
    }

    public TradeGoodsCreateParam setCateCode(long cateCode) {
        this.cateCode = cateCode;
        return this;
    }

    public int getMode() {
        return mode;
    }

    public TradeGoodsCreateParam setMode(int mode) {
        this.mode = mode;
        return this;
    }

    public double getPrice() {
        return price;
    }

    public TradeGoodsCreateParam setPrice(double price) {
        this.price = price;
        return this;
    }

    public long getAccountCode() {
        return accountCode;
    }

    public TradeGoodsCreateParam setAccountCode(long accountCode) {
        this.accountCode = accountCode;
        return this;
    }

    public long getTime() {
        return time;
    }

    public TradeGoodsCreateParam setTime(long time) {
        this.time = time;
        return this;
    }

    public int getGoodsStatus() {
        return goodsStatus;
    }

    public TradeGoodsCreateParam setGoodsStatus(int goodsStatus) {
        this.goodsStatus = goodsStatus;
        return this;
    }

    // endregion Getter和Setter方法
}
